package sysprovas.swing;

import javax.swing.JPanel;
import javax.swing.JLabel;
import java.awt.Font;
import javax.swing.JTextField;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.DefaultComboBoxModel;

public class PanelDisciplina extends JPanel {
	private JTextField txtNomeDisc;
	private JTextField txtProfessorDisc;

	/**
	 * Create the panel.
	 */
	public PanelDisciplina() {
		setLayout(null);
		
		JLabel lblDisciplina = new JLabel("Disciplina");
		lblDisciplina.setFont(new Font("Tahoma", Font.PLAIN, 20));
		lblDisciplina.setBounds(244, 13, 101, 28);
		add(lblDisciplina);
		
		JLabel lblNomeDisc = new JLabel("Nome:");
		lblNomeDisc.setFont(new Font("Tahoma", Font.PLAIN, 15));
		lblNomeDisc.setBounds(108, 79, 56, 16);
		add(lblNomeDisc);
		
		JLabel lblSemestreDisc = new JLabel("Semestre:");
		lblSemestreDisc.setFont(new Font("Tahoma", Font.PLAIN, 15));
		lblSemestreDisc.setBounds(108, 108, 71, 16);
		add(lblSemestreDisc);
		
		JLabel lblProfessorDisc = new JLabel("Professor:");
		lblProfessorDisc.setFont(new Font("Tahoma", Font.PLAIN, 15));
		lblProfessorDisc.setBounds(108, 137, 71, 16);
		add(lblProfessorDisc);
		
		txtNomeDisc = new JTextField();
		txtNomeDisc.setBounds(184, 77, 292, 22);
		add(txtNomeDisc);
		txtNomeDisc.setColumns(10);
		
		txtProfessorDisc = new JTextField();
		txtProfessorDisc.setColumns(10);
		txtProfessorDisc.setBounds(184, 135, 292, 22);
		add(txtProfessorDisc);
		
		JButton btnSalvarDisc = new JButton("Salvar");
		btnSalvarDisc.setBounds(249, 289, 97, 25);
		add(btnSalvarDisc);
		
		JComboBox cbSemestreDisc = new JComboBox();
		cbSemestreDisc.setModel(new DefaultComboBoxModel(new String[] {"I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX", "X"}));
		cbSemestreDisc.setBounds(184, 106, 56, 22);
		add(cbSemestreDisc);

	}
}
